﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Gunningine
{
    public abstract class RenderTexture : RenderResource
    {
        public int Id { get; protected set; }

        public int Width { get; private set; }

        public int Height { get; private set; }

        /// <summary>
        /// Constructor.
        /// </summary>
        /// <param name="width"></param>
        /// <param name="height"></param>
        /// <param name="channels"></param>
        public RenderTexture(int width, int height, int channels)
        {
            this.Width = width;
            this.Height = height;
        }

        /// <summary>
        /// Bind render texture.
        /// </summary>
        public abstract void Bind();

        /// <summary>
        /// Unbind render texture.
        /// </summary>
        public abstract void Unbind();
    }
}
